<ion-header>
  <ion-toolbar>
    <ion-title>Trust Root CA</ion-title>
    <ion-buttons slot="start">
      <ion-back-button defaultHref="system"></ion-back-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>

<ion-content class="ion-padding-top with-widgets">
  <ion-item-group>
    <!-- about -->
    <ion-item class="ion-padding-bottom">
      <ion-label>
        <h2>
          For a secure local connection and faster Tor experience,
          <a
            href="https://docs.start9.com/0.3.5.x/user-manual/trust-ca"
            target="_blank"
            rel="noreferrer"
          >
            follow instructions
          </a>
          to download and trust your server's Root Certificate Authority
        </h2>
      </ion-label>
    </ion-item>

    <ion-item button (click)="installCert()">
      <ion-icon slot="start" name="download-outline" size="large"></ion-icon>
      <ion-label>
        <h1>Download Root CA</h1>
      </ion-label>
    </ion-item>
  </ion-item-group>

  <!-- hidden element for downloading cert -->
  <a id="install-cert" href="/eos/local.crt"></a>
</ion-content>
